package com.example.book_recommend.pojo.bookInfo;

import javax.validation.constraints.NotNull;

public class MyPageBook {
    @NotNull(message = "页数不能为空")
    private Integer page;
    @NotNull(message = "每页数目不能为空")
    private Integer size;

    private String name;

    public MyPageBook(Integer page, Integer size, String name) {
        this.page = page;
        this.size = size;
        this.name = name;
        if(this.name==null){
            this.name="";
        }
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
